package com.squid.cloud.common.enums;

import lombok.Getter;

/**
 * 上账状态
 */
@Getter
public enum FakeRecordStatusEnum {

    stay_account(0, "待上账"),
    account_success(1, "上账成功");

    private final Integer code;

    private final String message;

    private FakeRecordStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public static String getValue(Integer code) {
        for (FakeRecordStatusEnum genum : FakeRecordStatusEnum.values()) {
            if (genum.getCode() == code) {
                return genum.message;
            }
        }
        return null;
    }
}
